#include "nvic.h"

void NVIC_Initialization(uint32_t PriorityGroup)
{
  NVIC_SetPriorityGrouping(PriorityGroup);

  NVIC_InitTypeDef NVIC_InitStructure={0};

  NVIC_InitStructure.NVIC_IRQChannel = TIM3_IRQn;
	NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0;
	NVIC_InitStructure.NVIC_IRQChannelSubPriority = 3;
	NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
	NVIC_Init(&NVIC_InitStructure);
}